package com.ask.forMe.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Rating {
    private Long userId;
    private Long itemId;
    private Double rating;
    private LocalDateTime updateTime;

    public Rating(Long userId, Long itemId, Double rating) {
        this.userId = userId;
        this.itemId = itemId;
        this.rating = rating;
    }
}
